﻿using Anke.SHManage.MSSQLDAL.FixedAssetsDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.BLL.FixedAssetsBLL
{
    public class FixedAssestChangeBLL
    {
        /// <summary>
        /// 获取固定资产变更列表
        /// </summary>
        /// <param name="pageSize"></param>
        /// <param name="pageIndex"></param>
        /// <param name="assetTypeID"></param>
        /// <param name="materialID"></param>
        /// <param name="assetID"></param>
        /// <param name="DateStart"></param>
        /// <param name="DateEnd"></param>
        /// <returns></returns>
        public object GetChangeList(int pageSize, int pageIndex, string assetTypeID, string materialID, string assetID, DateTime DateStart, DateTime DateEnd)
        {
            return new FixedAssestChangeDAL().GetChangeList(pageSize, pageIndex, assetTypeID, materialID, assetID, DateStart, DateEnd);
        }

        /// <summary>
        /// 获取变更数据
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        public Model.FixedAssetsModel.FIXED_PermissionChangeInfo GetChangeData(string Code)
        {
            return new FixedAssestChangeDAL().GetChangeData(Code);
        }

        //新增变更
        public bool InsertEditPageData(Model.FixedAssetsModel.FIXED_PermissionChangeInfo info)
        {
            return new FixedAssestChangeDAL().InsertEditPageData(info);
        }

        //修改变更
        public bool UpdateEditPageData(Model.FixedAssetsModel.FIXED_PermissionChangeInfo info)
        {
            return new FixedAssestChangeDAL().UpdateEditPageData(info);
        }
    }
}
